execute if score @s ancRetain matches 2 if predicate anc:machines/craft_machine/items run loot replace block ~ ~ ~ container.25 1 loot anc:machines/craft_machine/items
execute if score @s ancRetain matches 1 unless data block ~ ~ ~ Items.[{Slot:1b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:2b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:3b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:10b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:11b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:12b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:19b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:20b,Count:1b}] unless data block ~ ~ ~ Items.[{Slot:21b,Count:1b}] if predicate anc:machines/craft_machine/items run loot replace block ~ ~ ~ container.25 1 loot anc:machines/craft_machine/items
execute unless data block ~ ~ ~ Items[{Slot:25b,tag:{ancClear:1b}}] run function anc:machines/craft_machine/clear/input
